import service from '@/utils/request'

export const znzbslide = () => {
  return service({
    url: '/znzb/znzbGetSlide',
    method: 'get'
  })
}

export const znzbDelSlide = (params) => {
  return service({
    url: '/znzb/znzbDeleteSlide',
    method: 'delete',
    params
  })
}

export const znzbSlideDetail = (params) => {
  return service({
    url: '/znzb/znzbGetidSlide',
    method: 'get',
    params
  })
}

export const znzbUpdateSlide = (data) => {
  return service({
    url: '/znzb/znzbUpdateSlide',
    method: 'put',
    data
  })
}

export const znzbCreateSlide = (data) => {
  return service({
    url: '/znzb/znzbCreateSlide',
    method: 'post',
    data
  })
}
